package com.example.sps.pojo.dto;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @ProjectName: Sps
 * @Titile: EmpUpdateDTO
 * @Author: nency
 * @Description: TODO
 */
@Data
public class EmpUpdateDTO extends EmpInfoUpdateDTO{
    @NotNull(message="员工编号不能为空")
    private Integer empId;
    @NotNull(message="员工状态不能为空")
    @Max(value=1,message="最大值不能超过1")
    @Min(value=0,message="最小值不能小于0")
    private Integer status;
    /*角色编号*/
    @NotNull(message="角色编号不能为空")
    private Integer roleId;
    private String password;
}
